package com.campus.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
*
* @author xr
* @since 2023-12-360 14:22:52
*/
@Data
@TableName("tb_goods")
public class Goods{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal price;
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal discountPrice;
    private Integer cateId;
    private String goodsName;
    private String goodsImg;
    private String remark;
    private Integer saleUserId;
    private Integer status;
    private Integer pageView;
    private String createdAt;

}
